<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>BFC</title>

    <style>
      .box {
        width: 100px;
        height: 100px;
        background-color: blue;
        overflow: auto;
        /* position: absolute; */
        /* overflow: hidden; */
        /* display: flex;
        flex-direction: column; */
      }

      .i1 {
        width: 30px;
        height: 30px;
        background-color: yellow;
        margin-bottom: 10px;
      }

      .i2 {
        width: 30px;
        height: 30px;
        background-color: green;
        margin-top: 10px;
      }
    </style>
  </head>
  <body>
    <div class="box">
      <div class="i1">i1</div>
      <div class="i2">i2</div>
    </div>
  </body>
</html>
